import { author } from '@/models/author'

export type tag = {
  id: number,
  tagName: string,
  createTime?: any,
  updateTime?: any
}
export type ArticleExtraContentVO = {
  weather?: string,
  mood?: string,
  location?: string
}
export type ArticleCardDTO = {
  id: any,
  articleCover: string,
  articleTitle: string,
  articleAbstract: string,
  isTop: number,
  isFeatured: number,
  author: author,
  categoryName: string,
  tags?: tag[],
  status: number,
  type: number,
  postType: string,
  createTime: any,
  updateTime: any,
}
export type ArticleDTO = {
  id: number,
  author: author,
  categoryId: string,
  categoryName: string,
  articleTitle: string,
  articleCover: string,
  articleAbstract: string,
  articleContent: string,
  isTop: number,
  isFeatured: number,
  tags: tag[],
  viewCount: number,
  articleExtraContentVO: ArticleExtraContentVO,
  postType: string,
  type: number,
  originalUrl?: string,
  createTime: any,
  updateTime: any,
  preArticleCard: ArticleCardDTO,
  nextArticleCard: ArticleCardDTO
}
